/*
 */
package org.vectrics.graphics;

/**
 * @author mmoore
 */
public class LayerConfiguration {
    private String name = null;
    private Integer index = null;
    private Integer horizOffset = null;
    private Integer vertOffset = null;
    private int left = 0;
    private int top = 0;
    private boolean antiAliasing = true;
    private Integer width = null;
    private Integer height = null;
    private Float horizontalScale = null;
    private Float verticleScale = null;

    public String getUniqueName() {
    	StringBuffer name = new StringBuffer();
    	name.append(name);
    	name.append(width);
    	name.append(height);
    	name.append(index);
    	return(name.toString());
    }
    
    /**
     * @return Returns the index.
     */
    public Integer getIndex() {
        return index;
    }
    /**
     * @param index The index to set.
     */
    public void setIndex(Integer index) {
        this.index = index;
    }
    /**
     * @return Returns the name.
     */
    public String getName() {
        return name;
    }
    /**
     * @param name The name to set.
     */
    public void setName(String name) {
        this.name = name;
    }
    
    public void setLeft(Integer offset) {
        this.horizOffset = offset;
    }
    
    public void setTop(Integer offset) {
        this.vertOffset = offset;
    }
    
    public int getLeft() {
        int offset = 0;
        if (horizOffset != null)
            offset = horizOffset.intValue();
        return(offset);
    }
    
    public int getTop() {
        int offset = 0;
        if (vertOffset != null)
            offset = vertOffset.intValue();
        return(offset);
    }
    
    /**
     * @return Returns the antiAliasing.
     */
    public boolean getAntiAliasing() {
        return antiAliasing;
    }
    /**
     * @param antiAliasing The antiAliasing to set.
     */
    public void setAntiAliasing(boolean antiAliasing) {
        this.antiAliasing = antiAliasing;
    }
    
   
    /**
     * @return Returns the height.
     */
    public Integer getHeight() {
        return height;
    }
    /**
     * @param height The height to set.
     */
    public void setHeight(Integer height) {
        this.height = height;
    }
    /**
     * @return Returns the width.
     */
    public Integer getWidth() {
        return width;
    }
    /**
     * @param width The width to set.
     */
    public void setWidth(Integer width) {
        this.width = width;
    }

	public Float getHorizontalScale() {
		return horizontalScale;
	}

	public void setHorizontalScale(Float horizontalScale) {
		this.horizontalScale = horizontalScale;
	}

	public Float getVerticleScale() {
		return verticleScale;
	}

	public void setVerticleScale(Float verticleScale) {
		this.verticleScale = verticleScale;
	}
    
    
 }
